home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickTime / QuickTime 3 Interfaces & Libs / QTDevMac / PInterfaces / Components.p < prev    next >
Encoding:
Text File  |  1998-08-21  |  19.4 KB  |  518 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Components.p
  3.  
  4.      Contains:    Component Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1991-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Components;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __COMPONENTS__}
  28. {$SETC __COMPONENTS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ComponentsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __ERRORS__}
  35. {$I Errors.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __MACTYPES__}
  38. {$I MacTypes.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __MIXEDMODE__}
  41. {$I MixedMode.p}
  42. {$ENDC}
  43.  
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49.  
  50. CONST
  51.     kAppleManufacturer            = 'appl';                        {  Apple supplied components  }
  52.     kComponentResourceType        = 'thng';                        {  a components resource type  }
  53.     kComponentAliasResourceType    = 'thga';                        {  component alias resource type  }
  54.  
  55.     kAnyComponentType            = 0;
  56.     kAnyComponentSubType        = 0;
  57.     kAnyComponentManufacturer    = 0;
  58.     kAnyComponentFlagsMask        = 0;
  59.  
  60.     cmpWantsRegisterMessage        = $80000000;
  61.  
  62.     kComponentOpenSelect        = -1;                            {  ComponentInstance for this open  }
  63.     kComponentCloseSelect        = -2;                            {  ComponentInstance for this close  }
  64.     kComponentCanDoSelect        = -3;                            {  selector # being queried  }
  65.     kComponentVersionSelect        = -4;                            {  no params  }
  66.     kComponentRegisterSelect    = -5;                            {  no params  }
  67.     kComponentTargetSelect        = -6;                            {  ComponentInstance for top of call chain  }
  68.     kComponentUnregisterSelect    = -7;                            {  no params  }
  69.     kComponentGetMPWorkFunctionSelect = -8;                        {  some params  }
  70.  
  71. { Component Resource Extension flags }
  72.     componentDoAutoVersion        = $01;
  73.     componentWantsUnregister    = $02;
  74.     componentAutoVersionIncludeFlags = $04;
  75.     componentHasMultiplePlatforms = $08;
  76.     componentLoadResident        = $10;
  77.  
  78.  
  79.  
  80. { Set Default Component flags }
  81.     defaultComponentIdentical    = 0;
  82.     defaultComponentAnyFlags    = 1;
  83.     defaultComponentAnyManufacturer = 2;
  84.     defaultComponentAnySubType    = 4;
  85.     defaultComponentAnyFlagsAnyManufacturer = 3;
  86.     defaultComponentAnyFlagsAnyManufacturerAnySubType = 7;
  87.  
  88. { RegisterComponentResource flags }
  89.     registerComponentGlobal        = 1;
  90.     registerComponentNoDuplicates = 2;
  91.     registerComponentAfterExisting = 4;
  92.     registerComponentAliasesOnly = 8;
  93.  
  94.  
  95.  
  96. TYPE
  97.     ComponentDescriptionPtr = ^ComponentDescription;
  98.     ComponentDescription = RECORD
  99.         componentType:            OSType;                                    {  A unique 4-byte code indentifying the command set  }
  100.         componentSubType:        OSType;                                    {  Particular flavor of this instance  }
  101.         componentManufacturer:    OSType;                                    {  Vendor indentification  }
  102.         componentFlags:            UInt32;                                    {  8 each for Component,Type,SubType,Manuf/revision  }
  103.         componentFlagsMask:        UInt32;                                    {  Mask for specifying which flags to consider in search, zero during registration  }
  104.     END;
  105.  
  106.  
  107.     ResourceSpecPtr = ^ResourceSpec;
  108.     ResourceSpec = RECORD
  109.         resType:                OSType;                                    {  4-byte code   }
  110.         resID:                    INTEGER;                                {                }
  111.     END;
  112.  
  113.     ComponentResourcePtr = ^ComponentResource;
  114.     ComponentResource = RECORD
  115.         cd:                        ComponentDescription;                    {  Registration parameters  }
  116.         component:                ResourceSpec;                            {  resource where Component code is found  }
  117.         componentName:            ResourceSpec;                            {  name string resource  }
  118.         componentInfo:            ResourceSpec;                            {  info string resource  }
  119.         componentIcon:            ResourceSpec;                            {  icon resource  }
  120.     END;
  121.  
  122.     ComponentResourceHandle                = ^ComponentResourcePtr;
  123.     ComponentPlatformInfoPtr = ^ComponentPlatformInfo;
  124.     ComponentPlatformInfo = RECORD
  125.         componentFlags:            LONGINT;                                {  flags of Component  }
  126.         component:                ResourceSpec;                            {  resource where Component code is found  }
  127.         platformType:            INTEGER;                                {  gestaltSysArchitecture result  }
  128.     END;
  129.  
  130.     ComponentResourceExtensionPtr = ^ComponentResourceExtension;
  131.     ComponentResourceExtension = RECORD
  132.         componentVersion:        LONGINT;                                {  version of Component  }
  133.         componentRegisterFlags:    LONGINT;                                {  flags for registration  }
  134.         componentIconFamily:    INTEGER;                                {  resource id of Icon Family  }
  135.     END;
  136.  
  137.     ComponentPlatformInfoArrayPtr = ^ComponentPlatformInfoArray;
  138.     ComponentPlatformInfoArray = RECORD
  139.         count:                    LONGINT;
  140.         platformArray:            ARRAY [0..0] OF ComponentPlatformInfo;
  141.     END;
  142.  
  143.     ExtComponentResourcePtr = ^ExtComponentResource;
  144.     ExtComponentResource = RECORD
  145.         cd:                        ComponentDescription;                    {  registration parameters  }
  146.         component:                ResourceSpec;                            {  resource where Component code is found  }
  147.         componentName:            ResourceSpec;                            {  name string resource  }
  148.         componentInfo:            ResourceSpec;                            {  info string resource  }
  149.         componentIcon:            ResourceSpec;                            {  icon resource  }
  150.         componentVersion:        LONGINT;                                {  version of Component  }
  151.         componentRegisterFlags:    LONGINT;                                {  flags for registration  }
  152.         componentIconFamily:    INTEGER;                                {  resource id of Icon Family  }
  153.         count:                    LONGINT;                                {  elements in platformArray  }
  154.         platformArray:            ARRAY [0..0] OF ComponentPlatformInfo;
  155.     END;
  156.  
  157.     ComponentAliasResourcePtr = ^ComponentAliasResource;
  158.     ComponentAliasResource = RECORD
  159.         cr:                        ComponentResource;                        {  Registration parameters  }
  160.         aliasCD:                ComponentDescription;                    {  component alias description  }
  161.     END;
  162.  
  163. {  Structure received by Component:        }
  164.     ComponentParametersPtr = ^ComponentParameters;
  165.     ComponentParameters = PACKED RECORD
  166.         flags:                    UInt8;                                    {  call modifiers: sync/async, deferred, immed, etc  }
  167.         paramSize:                UInt8;                                    {  size in bytes of actual parameters passed to this call  }
  168.         what:                    INTEGER;                                {  routine selector, negative for Component management calls  }
  169.         params:                    ARRAY [0..0] OF LONGINT;                {  actual parameters for the indicated routine  }
  170.     END;
  171.  
  172.     ComponentRecordPtr = ^ComponentRecord;
  173.     ComponentRecord = RECORD
  174.         data:                    ARRAY [0..0] OF LONGINT;
  175.     END;
  176.  
  177.     Component                            = ^ComponentRecord;
  178.     ComponentInstanceRecordPtr = ^ComponentInstanceRecord;
  179.     ComponentInstanceRecord = RECORD
  180.         data:                    ARRAY [0..0] OF LONGINT;
  181.     END;
  182.  
  183.     ComponentInstance                    = ^ComponentInstanceRecord;
  184.     RegisteredComponentRecordPtr = ^RegisteredComponentRecord;
  185.     RegisteredComponentRecord = RECORD
  186.         data:                    ARRAY [0..0] OF LONGINT;
  187.     END;
  188.  
  189.     RegisteredComponentInstanceRecordPtr = ^RegisteredComponentInstanceRecord;
  190.     RegisteredComponentInstanceRecord = RECORD
  191.         data:                    ARRAY [0..0] OF LONGINT;
  192.     END;
  193.  
  194.     ComponentResult                        = LONGINT;
  195.  
  196. CONST
  197.     platform68k                    = 1;                            {  platform type (response from gestaltSysArchitecture)  }
  198.     platformPowerPC                = 2;
  199.     platformInterpreted            = 3;
  200.     platformWin32                = 4;
  201.  
  202.     mpWorkFlagDoWork            = $01;
  203.     mpWorkFlagDoCompletion        = $02;
  204.     mpWorkFlagCopyWorkBlock        = $04;
  205.     mpWorkFlagDontBlock            = $08;
  206.     mpWorkFlagGetProcessorCount    = $10;
  207.     mpWorkFlagGetIsRunning        = $40;
  208.  
  209.  
  210. TYPE
  211.     ComponentMPWorkFunctionHeaderRecordPtr = ^ComponentMPWorkFunctionHeaderRecord;
  212.     ComponentMPWorkFunctionHeaderRecord = RECORD
  213.         headerSize:                UInt32;
  214.         recordSize:                UInt32;
  215.         workFlags:                UInt32;
  216.         processorCount:            UInt16;
  217.         unused:                    SInt8;
  218.         isRunning:                SInt8;
  219.     END;
  220.  
  221. {$IFC TYPED_FUNCTION_POINTERS}
  222.     ComponentMPWorkFunctionProcPtr = FUNCTION(globalRefCon: UNIV Ptr; header: ComponentMPWorkFunctionHeaderRecordPtr): ComponentResult;
  223. {$ELSEC}
  224.     ComponentMPWorkFunctionProcPtr = ProcPtr;
  225. {$ENDC}
  226.  
  227. {$IFC TYPED_FUNCTION_POINTERS}
  228.     ComponentRoutineProcPtr = FUNCTION(VAR cp: ComponentParameters; componentStorage: Handle): ComponentResult;
  229. {$ELSEC}
  230.     ComponentRoutineProcPtr = ProcPtr;
  231. {$ENDC}
  232.  
  233.     ComponentMPWorkFunctionUPP = UniversalProcPtr;
  234.     ComponentRoutineUPP = UniversalProcPtr;
  235. {
  236.     The parameter list for each ComponentFunction is unique. It is
  237.     therefore up to users to create the appropriate procInfo for their
  238.     own ComponentFunctions where necessary.
  239. }
  240.     ComponentFunctionUPP                = UniversalProcPtr;
  241.  
  242. {*******************************************************
  243. *                                                        *
  244. *                  APPLICATION LEVEL CALLS                    *
  245. *                                                        *
  246. *******************************************************}
  247. {*******************************************************
  248. * Component Database Add, Delete, and Query Routines
  249. *******************************************************}
  250. FUNCTION RegisterComponent(VAR cd: ComponentDescription; componentEntryPoint: ComponentRoutineUPP; global: INTEGER; componentName: Handle; componentInfo: Handle; componentIcon: Handle): Component;
  251.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  252.     INLINE $7001, $A82A;
  253.     {$ENDC}
  254. FUNCTION RegisterComponentResource(cr: ComponentResourceHandle; global: INTEGER): Component;
  255.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  256.     INLINE $7012, $A82A;
  257.     {$ENDC}
  258. FUNCTION UnregisterComponent(aComponent: Component): OSErr;
  259.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  260.     INLINE $7002, $A82A;
  261.     {$ENDC}
  262. FUNCTION FindNextComponent(aComponent: Component; VAR looking: ComponentDescription): Component;
  263.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  264.     INLINE $7004, $A82A;
  265.     {$ENDC}
  266. FUNCTION CountComponents(VAR looking: ComponentDescription): LONGINT;
  267.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  268.     INLINE $7003, $A82A;
  269.     {$ENDC}
  270. FUNCTION GetComponentInfo(aComponent: Component; VAR cd: ComponentDescription; componentName: Handle; componentInfo: Handle; componentIcon: Handle): OSErr;
  271.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  272.     INLINE $7005, $A82A;
  273.     {$ENDC}
  274. FUNCTION GetComponentListModSeed: LONGINT;
  275.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  276.     INLINE $7006, $A82A;
  277.     {$ENDC}
  278. FUNCTION GetComponentTypeModSeed(componentType: OSType): LONGINT;
  279.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  280.     INLINE $702C, $A82A;
  281.     {$ENDC}
  282. {*******************************************************
  283. * Component Instance Allocation and dispatch routines
  284. *******************************************************}
  285. FUNCTION OpenAComponent(aComponent: Component; VAR ci: ComponentInstance): OSErr;
  286.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  287.     INLINE $702D, $A82A;
  288.     {$ENDC}
  289. FUNCTION OpenComponent(aComponent: Component): ComponentInstance;
  290.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  291.     INLINE $7007, $A82A;
  292.     {$ENDC}
  293. FUNCTION CloseComponent(aComponentInstance: ComponentInstance): OSErr;
  294.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  295.     INLINE $7008, $A82A;
  296.     {$ENDC}
  297. FUNCTION GetComponentInstanceError(aComponentInstance: ComponentInstance): OSErr;
  298.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  299.     INLINE $700A, $A82A;
  300.     {$ENDC}
  301. {*******************************************************
  302. *                                                        *
  303. *                      CALLS MADE BY COMPONENTS              *
  304. *                                                        *
  305. *******************************************************}
  306. {*******************************************************
  307. * Component Management routines
  308. *******************************************************}
  309. PROCEDURE SetComponentInstanceError(aComponentInstance: ComponentInstance; theError: OSErr);
  310.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  311.     INLINE $700B, $A82A;
  312.     {$ENDC}
  313. FUNCTION GetComponentRefcon(aComponent: Component): LONGINT;
  314.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  315.     INLINE $7010, $A82A;
  316.     {$ENDC}
  317. PROCEDURE SetComponentRefcon(aComponent: Component; theRefcon: LONGINT);
  318.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  319.     INLINE $7011, $A82A;
  320.     {$ENDC}
  321. FUNCTION OpenComponentResFile(aComponent: Component): INTEGER;
  322.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  323.     INLINE $7015, $A82A;
  324.     {$ENDC}
  325. FUNCTION OpenAComponentResFile(aComponent: Component; VAR resRef: INTEGER): OSErr;
  326.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  327.     INLINE $702F, $A82A;
  328.     {$ENDC}
  329. FUNCTION CloseComponentResFile(refnum: INTEGER): OSErr;
  330.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  331.     INLINE $7018, $A82A;
  332.     {$ENDC}
  333. FUNCTION GetComponentResource(aComponent: Component; resType: OSType; resID: INTEGER; VAR theResource: Handle): OSErr;
  334.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  335.     INLINE $7035, $A82A;
  336.     {$ENDC}
  337. FUNCTION GetComponentIndString(aComponent: Component; VAR theString: Str255; strListID: INTEGER; index: INTEGER): OSErr;
  338.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  339.     INLINE $7036, $A82A;
  340.     {$ENDC}
  341. FUNCTION ResolveComponentAlias(aComponent: Component): Component;
  342.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  343.     INLINE $7020, $A82A;
  344.     {$ENDC}
  345. {*******************************************************
  346. * Component Instance Management routines
  347. *******************************************************}
  348. FUNCTION GetComponentInstanceStorage(aComponentInstance: ComponentInstance): Handle;
  349.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  350.     INLINE $700C, $A82A;
  351.     {$ENDC}
  352. PROCEDURE SetComponentInstanceStorage(aComponentInstance: ComponentInstance; theStorage: Handle);
  353.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  354.     INLINE $700D, $A82A;
  355.     {$ENDC}
  356. FUNCTION GetComponentInstanceA5(aComponentInstance: ComponentInstance): LONGINT;
  357.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  358.     INLINE $700E, $A82A;
  359.     {$ENDC}
  360. PROCEDURE SetComponentInstanceA5(aComponentInstance: ComponentInstance; theA5: LONGINT);
  361.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  362.     INLINE $700F, $A82A;
  363.     {$ENDC}
  364. FUNCTION CountComponentInstances(aComponent: Component): LONGINT;
  365.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  366.     INLINE $7013, $A82A;
  367.     {$ENDC}
  368. { useful helper routines for convenient method dispatching }
  369. FUNCTION CallComponentFunction(VAR params: ComponentParameters; func: ComponentFunctionUPP): LONGINT;
  370.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  371.     INLINE $70FF, $A82A;
  372.     {$ENDC}
  373. FUNCTION CallComponentFunctionWithStorage(storage: Handle; VAR params: ComponentParameters; func: ComponentFunctionUPP): LONGINT;
  374.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  375.     INLINE $70FF, $A82A;
  376.     {$ENDC}
  377. {$IFC TARGET_CPU_PPC AND TARGET_OS_MAC }
  378. FUNCTION CallComponentFunctionWithStorageProcInfo(storage: Handle; VAR params: ComponentParameters; func: ProcPtr; funcProcInfo: LONGINT): LONGINT;
  379. {$ELSEC}
  380. {$ENDC}
  381.  
  382. FUNCTION DelegateComponentCall(VAR originalParams: ComponentParameters; ci: ComponentInstance): LONGINT;
  383.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  384.     INLINE $7024, $A82A;
  385.     {$ENDC}
  386. FUNCTION SetDefaultComponent(aComponent: Component; flags: INTEGER): OSErr;
  387.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  388.     INLINE $701E, $A82A;
  389.     {$ENDC}
  390. FUNCTION OpenDefaultComponent(componentType: OSType; componentSubType: OSType): ComponentInstance;
  391.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  392.     INLINE $7021, $A82A;
  393.     {$ENDC}
  394. FUNCTION OpenADefaultComponent(componentType: OSType; componentSubType: OSType; VAR ci: ComponentInstance): OSErr;
  395.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  396.     INLINE $702E, $A82A;
  397.     {$ENDC}
  398. FUNCTION CaptureComponent(capturedComponent: Component; capturingComponent: Component): Component;
  399.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  400.     INLINE $701C, $A82A;
  401.     {$ENDC}
  402. FUNCTION UncaptureComponent(aComponent: Component): OSErr;
  403.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  404.     INLINE $701D, $A82A;
  405.     {$ENDC}
  406. FUNCTION RegisterComponentResourceFile(resRefNum: INTEGER; global: INTEGER): LONGINT;
  407.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  408.     INLINE $7014, $A82A;
  409.     {$ENDC}
  410. FUNCTION GetComponentIconSuite(aComponent: Component; VAR iconSuite: Handle): OSErr;
  411.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  412.     INLINE $7029, $A82A;
  413.     {$ENDC}
  414.  
  415. {*******************************************************
  416. *                                                        *
  417. *              Direct calls to the Components                *
  418. *                                                        *
  419. *******************************************************}
  420. {  Old style names }
  421.  
  422. FUNCTION ComponentFunctionImplemented(ci: ComponentInstance; ftnNumber: INTEGER): LONGINT;
  423.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  424.     INLINE $2F3C, $0002, $FFFD, $7000, $A82A;
  425.     {$ENDC}
  426. FUNCTION GetComponentVersion(ci: ComponentInstance): LONGINT;
  427.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  428.     INLINE $2F3C, $0000, $FFFC, $7000, $A82A;
  429.     {$ENDC}
  430. FUNCTION ComponentSetTarget(ci: ComponentInstance; target: ComponentInstance): LONGINT;
  431.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  432.     INLINE $2F3C, $0004, $FFFA, $7000, $A82A;
  433.     {$ENDC}
  434. {  New style names }
  435.  
  436. FUNCTION CallComponentOpen(ci: ComponentInstance; self: ComponentInstance): ComponentResult;
  437.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  438.     INLINE $2F3C, $0004, $FFFF, $7000, $A82A;
  439.     {$ENDC}
  440. FUNCTION CallComponentClose(ci: ComponentInstance; self: ComponentInstance): ComponentResult;
  441.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  442.     INLINE $2F3C, $0004, $FFFE, $7000, $A82A;
  443.     {$ENDC}
  444. FUNCTION CallComponentCanDo(ci: ComponentInstance; ftnNumber: INTEGER): ComponentResult;
  445.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  446.     INLINE $2F3C, $0002, $FFFD, $7000, $A82A;
  447.     {$ENDC}
  448. FUNCTION CallComponentVersion(ci: ComponentInstance): ComponentResult;
  449.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  450.     INLINE $2F3C, $0000, $FFFC, $7000, $A82A;
  451.     {$ENDC}
  452. FUNCTION CallComponentRegister(ci: ComponentInstance): ComponentResult;
  453.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  454.     INLINE $2F3C, $0000, $FFFB, $7000, $A82A;
  455.     {$ENDC}
  456. FUNCTION CallComponentTarget(ci: ComponentInstance; target: ComponentInstance): ComponentResult;
  457.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  458.     INLINE $2F3C, $0004, $FFFA, $7000, $A82A;
  459.     {$ENDC}
  460. FUNCTION CallComponentUnregister(ci: ComponentInstance): ComponentResult;
  461.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  462.     INLINE $2F3C, $0000, $FFF9, $7000, $A82A;
  463.     {$ENDC}
  464. FUNCTION CallComponentGetMPWorkFunction(ci: ComponentInstance; VAR workFunction: ComponentMPWorkFunctionUPP; VAR refCon: UNIV Ptr): ComponentResult;
  465.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  466.     INLINE $2F3C, $0008, $FFF8, $7000, $A82A;
  467.     {$ENDC}
  468.  
  469. {$IFC NOT TARGET_OS_MAC }
  470.         CallComponent is used by ComponentGlue routines to manually call a component function.
  471.      }
  472. FUNCTION CallComponent(ci: ComponentInstance; VAR cp: ComponentParameters): ComponentResult;
  473. {$ENDC}
  474.  
  475. { UPP call backs }
  476.  
  477. CONST
  478.     uppComponentMPWorkFunctionProcInfo = $000003F0;
  479.     uppComponentRoutineProcInfo = $000003F0;
  480.  
  481. FUNCTION NewComponentMPWorkFunctionProc(userRoutine: ComponentMPWorkFunctionProcPtr): ComponentMPWorkFunctionUPP;
  482.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  483.     INLINE $2E9F;
  484.     {$ENDC}
  485.  
  486. FUNCTION NewComponentRoutineProc(userRoutine: ComponentRoutineProcPtr): ComponentRoutineUPP;
  487.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  488.     INLINE $2E9F;
  489.     {$ENDC}
  490.  
  491. FUNCTION CallComponentMPWorkFunctionProc(globalRefCon: UNIV Ptr; header: ComponentMPWorkFunctionHeaderRecordPtr; userRoutine: ComponentMPWorkFunctionUPP): ComponentResult;
  492.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  493.     INLINE $205F, $4E90;
  494.     {$ENDC}
  495.  
  496. FUNCTION CallComponentRoutineProc(VAR cp: ComponentParameters; componentStorage: Handle; userRoutine: ComponentRoutineUPP): ComponentResult;
  497.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  498.     INLINE $205F, $4E90;
  499.     {$ENDC}
  500. { ProcInfos }
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507. {$ALIGN RESET}
  508. {$POP}
  509.  
  510. {$SETC UsingIncludes := ComponentsIncludes}
  511.  
  512. {$ENDC} {__COMPONENTS__}
  513.  
  514. {$IFC NOT UsingIncludes}
  515.  END.
  516. {$ENDC}
  517.